//
//  SecondViewController.m
//  UI_07homeworkNavigationAndGesture
//
//  Created by dllo on 16/6/14.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "SecondViewController.h"
#import "ScrollView.h"
@interface SecondViewController ()

@property(nonatomic, retain)ScrollView *woquView;

@end

@implementation SecondViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    [self creathaha];
    
    // 一个属性
    self.automaticallyAdjustsScrollViewInsets = NO;
    
    
    
    
}
-(void)creathaha{
    
    self.woquView = [[ScrollView alloc]initWithFrame:CGRectMake(0, 0, 200, 280)];
    
    self.woquView.center = self.view.center;
    [self.view addSubview:self.woquView];
    [self.woquView release];
    self.woquView.imagesArray = self.creazyArray;
    self.woquView.contentOffset = CGPointMake((self.ccTag - 1) * (200), 0);
}









- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
